<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/5 0005
  Time: 14:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*,cn.dao.*" %>
<html>
<head>
    <title>out</title>
    <script>
        function doC(){
            <%
              System.out.println("hi,java");
              out.print("alert('hello world');");
            %>
        }
    </script>
</head>
<body>
<%
  out.print("Writer 子类？"+(out instanceof java.io.Writer));
  out.print("<h1>We change lives!</h1>");
%>
<hr/>
<%
    String []ar={"桃子","梨子","菠萝","柿子","葡萄","苹果"};
%>
<ul>
    <%
     for(String s:ar){
    %>
    <li style="list-style: none;font-size:40px;color:green;"><%=s%></li>
    <%}%>
</ul>
<hr/>
<%
     MyDao dao=new MyDao();
     List<String> list=dao.getFruits();
     for(String s:list){
         out.print("<h1>"+s+"</h1>");
     }
%>
<h1>
    欢迎您，<%=request.getParameter("studentname")%>
</h1>
<input type="button" value="Click"  onclick="doC()"/>
</body>
</html>
